<template>
  <div class="login-item">
    <a @click="showLogin">登录</a>
  </div>
</template>

<script>
export default {
  methods: {
    showLogin() {
      this.$emit("showLogin");
      // this.$store.dispatch("login/toggleLogin");
    }
  }
};
</script>

<style lang="scss" scoped>
@import "@/style/common.scss";
.login-item {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  a {
    color: $fontColor;
    text-decoration: none;
    cursor: pointer;
    color: #67c23a;
  }
}
</style>